//
//  ALCollectionController.m
//  Ummy.G
//
//  Created by 安林 on 16/10/5.
//  Copyright © 2016年 安林. All rights reserved.
//

#import "ALCollectionController.h"
#import "UIBarButtonItem+buttonItem.h"
@interface ALCollectionController ()

@end

@implementation ALCollectionController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    //------返回---------
    UIBarButtonItem *backR = [UIBarButtonItem barButtonItemWith:[UIButton buttonWithType:UIButtonTypeCustom] addTarget:self action:@selector(backRight) andImage:@"navigationButtonReturn" andHighlighted:nil];
    
    self.navigationItem.leftBarButtonItem =backR;
}

- (void)backRight{
    //没有push的时候用这个
    [self dismissViewControllerAnimated:YES completion:nil];
}

@end
